$OpenBSD: patch-modules_auth_auth_mod_c,v 1.4 2015/11/20 10:09:52 sthen Exp $
--- modules/auth/auth_mod.c.orig	Fri Oct  2 15:35:17 2015
+++ modules/auth/auth_mod.c	Mon Oct 19 14:00:40 2015
@@ -958,7 +958,7 @@ static int proxy_challenge(struct sip_msg *msg, char* 
 		goto error;
 	}
 
-	return auth_challenge(msg, &srealm, vflags, HDR_PROXYAUTH_T);
+	return auth_challenge_helper(msg, &srealm, vflags, HDR_PROXYAUTH_T, NULL);
 
 error:
 	if(!(vflags&4)) {
@@ -991,7 +991,7 @@ static int www_challenge(struct sip_msg *msg, char* re
 		goto error;
 	}
 
-	return auth_challenge(msg, &srealm, vflags, HDR_AUTHORIZATION_T);
+	return auth_challenge_helper(msg, &srealm, vflags, HDR_AUTHORIZATION_T, NULL);
 
 error:
 	if(!(vflags&4)) {
@@ -1029,9 +1029,9 @@ static int w_auth_challenge(struct sip_msg *msg, char*
 	}
 
 	if(msg->REQ_METHOD==METHOD_REGISTER)
-		return auth_challenge(msg, &srealm, vflags, HDR_AUTHORIZATION_T);
+		return auth_challenge_helper(msg, &srealm, vflags, HDR_AUTHORIZATION_T, NULL);
 	else
-		return auth_challenge(msg, &srealm, vflags, HDR_PROXYAUTH_T);
+		return auth_challenge_helper(msg, &srealm, vflags, HDR_PROXYAUTH_T, NULL);
 
 error:
 	if(!(vflags&4)) {
